﻿@using BotDetect.Web.UI.Mvc
@{
    ViewBag.Title = "HomeOnline";
    Layout = "~/Views/Shared/_LayoutHomeOnline.cshtml";
}
@functions{
    public string GetAntiForgeryToken()
    {
        string cookieToken, formToken;
        AntiForgery.GetTokens(null, out cookieToken, out formToken);
        return cookieToken + "," + formToken;
    }
}
<div class="head">
    <div class="label">Thông tin về hộ gia đình</div>
</div>

<div class="form-horizontal">
    <div class="form-body">
        @Html.AntiForgeryToken()
        <form id="frmHousehold">

            <div class="row margin-top-20">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4 col-sm-4 col-xs-5">Tên chủ hộ<span style="color:red;">*</span></label>
                        <div class="col-md-8 col-sm-8 col-xs-7 col-sm-8 col-xs-7">
                            <input class="form-control input-sm" name="HOUSEHOLD_NAME" id="HOUSEHOLD_NAME" maxlength="255" placeholder="Tên chủ hộ" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-4 col-sm-4 col-xs-5">Email</label>
                        <div class="col-md-8 col-sm-8 col-xs-7">
                            <input class="form-control input-sm" name="HH_HEAD_EMAIL" id="HH_HEAD_EMAIL" maxlength="100" placeholder="Email" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-md-4 col-sm-4 col-xs-5">Địa chỉ</label>
                        <div class="col-md-8 col-sm-8 col-xs-7">
                            <input class="form-control input-sm" name="ADDRESS_NAME" id="ADDRESS_NAME" maxlength="255" placeholder="Địa chỉ" />
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4 col-sm-4 col-xs-5">Trạng thái<span class="hidden-580"> hồ sơ</span></label>
                        <div class="col-md-8 col-sm-8 col-xs-7"><input class="form-control input-sm" id="ONLINE_SURVEY_STATUS" readonly="readonly" placeholder="Trạng thái hồ sơ" /></div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-md-4 col-sm-4 col-xs-5">Số điện thoại</label>
                        <div class="col-md-8 col-sm-8 col-xs-7">
                            <input class="form-control input-sm" name="HH_HEAD_MOBILE" id="HH_HEAD_MOBILE" maxlength="14" placeholder="Số điện thoại" />
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-md-4 col-sm-4 col-xs-5">Địa bàn</label>
                        <div class="col-md-8 col-sm-8 col-xs-7">
                            <input class="form-control input-sm" id="AREA_NAME" readonly="readonly" placeholder="Địa bàn" />
                        </div>
                    </div>
                </div>
            </div>
        </form>
        <div style="text-align:center;">
            <button class="btn btn-sm" id="btnNext" style="background-color: #2664B7; color:#ffffff; min-width:100px;">Tiếp tục <i class="fa fa-angle-double-right"></i></button>
        </div>
        <div class="hidden-sm hidden-xs" style="height:50px;"></div>
    </div>
</div>

<script src="@Url.Content("~/Scripts/OnlineHome.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        var initData = {
            GetHouseHoldUrl: "@Url.Action("GetHouseholdDetail", "Online")",
            VerificationToken: "@GetAntiForgeryToken()",
            DirectURL: "@Url.Action("Resident", "Online")",
            HomePostUrl: "@Url.Action("HomePost", "Online")",
            LogoutUrl: "@Url.Action("LogOff", "Online")",
            LoginUrl:"@Url.Action("Login", "Online")",
        };
        OnlineHome.init(initData);

    });
</script>